/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ttfsclient;

import java.awt.Desktop;
import java.io.File;

/**
 *
 * @author Tidus Le
 */
public class clsThreadOpenFile extends Thread
{
    String path="";

    public clsThreadOpenFile(String path) {
        this.path = path;
    }
    
    @Override
    public void run()
    {
        try
        {
            if(Desktop.isDesktopSupported()==true)
            {
                Desktop.getDesktop().open(new File(path));
            }
        }catch(Exception e)
        {
            e.printStackTrace();
        }
    }
}
